package demo1;

public class Demo2 {

	{
		System.out.println("通用构造");
	}
	
	public Demo2(){
		System.out.println("构造方法一");
	}
	public Demo2(int i){
		System.out.println("构造方法2");
	}
	public Demo2(int i,int j){
		System.out.println("构造方法3");
	}
	
	public static void main(String[] args) {
		new Demo2();
		new Demo2(1);
		new Demo2(1,2);
	}
}
